package com.cognitran.cssvalidator.validation.model;

/**
 * Common metadata shared between CSS validation warnings and errors. 
 * 
 * @author garethf
 */
public class CSSValidationMessage
{
	
	/** The line number for the validation message. */
	private int line;

	/** The context of the validation message. */
	private String context;

	/** The validation message. */
	private String message;
	
	
	/**
	 * Get the line number for the message.
	 * 
	 * @return The line number of the validation message.
	 */
	public int getLine()
	{
		return line;
	}
	
	
	/**
	 * Set the line number for the message.
	 * 
	 * @param line The line number of the validation message.
	 */
	public void setLine(int line)
	{
		this.line = line;
	}
	
	
	/**
	 * Get the context for the message.
	 * 
	 * @return The context of the validation message.
	 */
	public String getContext()
	{
		return context;
	}
	
	
	/**
	 * Set the context for the message.
	 * 
	 * @param context The context of the validation message.
	 */
	public void setContext(String context)
	{
		this.context = context;
	}
	
	
	/**
	 * Get the message.
	 * 
	 * @return The validation message.
	 */
	public String getMessage()
	{
		return message;
	}
	
	
	/**
	 * Set the message.
	 * 
	 * @param context The validation message.
	 */
	public void setMessage(String message)
	{
		this.message = message;
	}
	
}
